why top -10 css

44

.parent {
    position: relative;
    height: 100px;
}
.child {
    position: absolute;
    top: 50%;
}

Comments

Submit
0 Comments